// import React, {useState, useEffect} from "react";
import { PORT1 ,base } from "@/api/config/servicePort";
import http from "@/api";
declare interface ProjectsetData {
	projectset: string;
	project: string;
	completed: string;
	uncompleted: string;
	notStartCount: Number;
	inprogressCount: Number;
	completedCount: Number;
	supportingCount: Number;
}

// export const [data, setData] = useState();

// * 获取projectset数据
export const getProjectSetData = () => {
	return http.get<ProjectsetData>(PORT1 + `/projectset/visualize`);
};

// * 获取projectset items
export const getProjectSetList = base + PORT1 + `/projectset/list`;


